function anchor(href,option) {
    if(option == 1) {
        var con = confirm("Are you sure of this action?");
        if(con == true) {
            window.location = href;
        }
    } else if(option == null) {
        window.location = href;
    }
}